// cache.ts
import { LRUCache as LRU } from "lru-cache";
import type { ChatHistoryList } from "@/types";

export const chatCache = new LRU<string, ChatHistoryList>({
  max: 50, // 最大缓存 50 个会话
  ttl: 1000 * 60 * 60, // 每个会话缓存 1 小时
});
